package com.guodi.model.utils;

import com.guodi.common.utils.PageData;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@ApiModel("ztree树")
public class ZTreeNode implements Serializable {
    private static final long serialVersionUID = -8995432190410965350L;
    @ApiModelProperty("节点id")
    private String id;
    @ApiModelProperty("节点名称")
    private String name;
    @ApiModelProperty("父节点id")
    private String pId;
    @ApiModelProperty("自定义节点图标路径")
    private String icon;
    @ApiModelProperty("自定义节点图标ClassName")
    private String iconSkin;
    @ApiModelProperty("节点链接url")
    private String url;
    @ApiModelProperty("是否为父节点true/false")
    private boolean isParent = false;
    @ApiModelProperty("节点展开true/折叠false")
    private boolean open = false;
    @ApiModelProperty("节点checkBox/radio的勾选状态")
    private boolean checked = false;
    @ApiModelProperty("自定义数据集map")
    private PageData pd = new PageData();
    @ApiModelProperty("排序")
    private Integer sort;
    @ApiModelProperty("组织ID")
    private String orgId;
    private List<ZTreeNode> children = new ArrayList();

    public ZTreeNode() {
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getpId() {
        return this.pId;
    }

    public void setpId(String pId) {
        this.pId = pId;
    }

    public String getIcon() {
        return this.icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getIconSkin() {
        return this.iconSkin;
    }

    public void setIconSkin(String iconSkin) {
        this.iconSkin = iconSkin;
    }

    public String getUrl() {
        return this.url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public boolean getIsParent() {
        return this.isParent;
    }

    public void setIsParent(boolean isParent) {
        this.isParent = isParent;
    }

    public boolean isOpen() {
        return this.open;
    }

    public void setOpen(boolean open) {
        this.open = open;
    }

    public boolean isChecked() {
        return this.checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public PageData getPd() {
        return this.pd;
    }

    public void setPd(PageData pd) {
        this.pd = pd;
    }

    public List<ZTreeNode> getChildren() {
        return this.children;
    }

    public void setChildren(List<ZTreeNode> children) {
        this.children = children;
    }

    public Integer getSort() {
        return this.sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getOrgId() { return orgId; }

    public void setOrgId(String orgId) { this.orgId = orgId; }
}
